//
//  UIButton+Extension.swift
//  1微博界面
//
//  Created by ll on 15/10/15.
//  Copyright © 2015年 itcast. All rights reserved.
//

import UIKit

extension UIButton{

    convenience init(imageName :String ,backImageName :String) {
        self.init()
        setImage(UIImage(named: imageName), forState:.Normal)
        setImage(UIImage(named: imageName + "_highlighted"), forState: .Highlighted)
        setBackgroundImage(UIImage(named: backImageName), forState: .Normal)
        setBackgroundImage(UIImage(named: backImageName + "_highlighted"), forState: .Highlighted)

       // button.sizeToFit()

    }

}

